<template>
  <div id="loading">
    <div class="wave">
        <div class="dot"></div>
        <div class="dot"></div>
        <div class="dot"></div>
        <div class="dot"></div>
        <div class="dot"></div>
        <div class="dot"></div>
    </div>
  </div>
</template>
<script>
// @ is an alias to /src

export default {
  data() {
    return {
      list: ""
    };
  },
  mounted() {}
};
</script>
<style lang="scss" scoped>
#loading {
  width: 100%;
  height: 100vh;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#loading .wave {
  width: 20px;
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
  transform: scale3d(0.4, 0.4, 0.4);
}
#loading .wave .dot {
  width: 20px;
  height: 4px;
  background-color: #464141;
  display: inline-block;
  vertical-align: middle;
  margin: 16px auto;
  position: relative;
  transform: scale(0.6);
}
#loading .wave .dot:before,
#loading .wave .dot:after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: absolute;
  top: -10px;
  left: -1px;
}
#loading .wave .dot:before {
  animation: Before 1.9s cubic-bezier(0.42, 0, 0.58, 1) infinite;
  animation-fill-mode: forwards;
  background-color: #19cbeb;
  box-shadow: inset 2px 2px 5px #38bddf 10;
}
#loading .wave .dot:after {
  animation: After 1.9s cubic-bezier(0.42, 0, 0.58, 1) infinite;
  animation-fill-mode: forwards;
  background-color: #009dff;
  box-shadow: inset 2px 2px 5px #20a9ff;
}
#loading .wave {
  .dot:nth-child(1):before,
  .dot:nth-child(1):after {
    animation-delay: -1.71s;
  }
  .dot:nth-child(2):before,
  .dot:nth-child(2):after {
    animation-delay: -3.42s;
  }
  .dot:nth-child(3):before,
  .dot:nth-child(3):after {
    animation-delay: -5.13s;
  }
  .dot:nth-child(4):before,
  .dot:nth-child(4):after {
    animation-delay: -6.84s;
  }
  .dot:nth-child(5):before,
  .dot:nth-child(5):after {
    animation-delay: -8.55s;
  }
  .dot:nth-child(6):before,
  .dot:nth-child(6):after {
    animation-delay: -10.26s;
  }
}
@keyframes Before {
  0% {
    left: -40px;
    z-index: 10;
  }
  25% {
    transform: scale(1.4);
    z-index: 10;
  }
  50% {
    left: 40px;
    z-index: 1;
  }
  75% {
    background-color: #41c9eb;
    box-shadow: inset 2px 2px 5px #92d9fa;
    transform: scale(0.6);
    z-index: 1;
  }
  100% {
    left: -40px;
    z-index: 1;
  }
}
@keyframes After {
  0% {
    left: 40px;
    z-index: 1;
  }
  25% {
    background-color: #98d7ff;
    box-shadow: inset 2px 2px 5px #97d7ff;
    transform: scale(0.6);
    z-index: 1;
  }
  50% {
    left: -40px;
    z-index: 10;
  }
  75% {
    transform: scale(1.4);
    z-index: 10;
  }
  100% {
    left: 40px;
    z-index: 10;
  }
}
</style>
